<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>医生评论</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link href="/lobsteruiframe/layuiadmin/layui/css/layui.css" rel="stylesheet" />
    <link href="/lobsteruiframe/layuiadmin/style/admin.css" rel="stylesheet" />
    <script src="/lobsteruiframe/layuiadmin/layui/layui.js"></script>
    <script src="/jslib/jquery-3.4.1.min.js"></script>
    <script src="/jslib/lobster.js"></script>

    <script src="list.js"></script>
</head>

<body>
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-form layui-card-header layuiadmin-card-header-auto">
                <div class="layui-input-inline">
                    <label class="layui-form-label">查找条件：</label>
                    <div class="layui-input-block">
                        <input class="layui-input" type="text" id="searchkey" name="searchkey" placeholder="请输入医生姓名" />
                    </div>
                </div>

                <div class="layui-input-inline">
                    <label class="layui-form-label">状态：</label>
                    <div class="layui-input-block">
                        <select id="cmbStatus" name="cmbStatus" lay-search="">
                            <option value="-1">全部</option>
                            <option value="0">未发布</option>
                            <option value="1">已发布</option>
                        </select>
                    </div>
                </div>

                <div class="layui-input-inline">
                    <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="LAY-app-front-search"
                        id="btnSearch">
                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>查询
                    </button>
                </div>
            </div>

            <div class="layui-card-body">
                <div class="layui-card-body">
                    <table id="datatable" lay-filter="datatable"></table>
                </div>
            </div>
        </div>
    </div>

    <!--回复内容弹框-->
    <form class="layui-form" lay-filter="layuiadmin-form-reply" id="layuiadmin-form-reply"
        style="margin-top:5px;display:none">
        <div class="layui-card">
            <div class="layui-card-body box">
                <div class="layui-form-item active">
                    <label class="layui-form-label">回复内容</label>
                    <div class="layui-input-block">
                        <textarea class="layui-textarea" name="ReplyContent" lay-verify="required"
                            placeholder="请输入回复内容"></textarea>
                    </div>
                </div>
                <div class="layui-form-item layui-hide active">
                    <input type="text" name="ID" id="id">
                </div>
                <div class="layui-form-item layui-hide active">
                    <input type="button" lay-submit lay-filter="LAY-reply-form-submit" id="LAY-reply-form-submit"
                        value="确认">
                    <input type="reset" id="LAY-repy-form-reset" value="重置">
                </div>
            </div>
        </div>
    </form>
</body>

</html>

<script type="text/html" id="flagTpl">
    {{#  if(d.Status == 0){ }}
    <span style="color:red;">未发布</span>
    {{#  } else { }}
    已发布
    {{#  } }}
</script>
<script type="text/html" id="optimeTpl">
    {{#  if(d.OperateTime==null){ }}
    <span></span>
    {{#  } else { }}
    {{ d.OperateTime }}
    {{#  } }}
</script>
<script type="text/html" id="replytimeTpl">
    {{#  if(d.ReplyTime==null){ }}
    <span></span>
    {{#  } else { }}
    {{ d.ReplyTime }}
    {{#  } }}
</script>
<script type="text/html" id="bar">
    {{#  if(d.Status == 1){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="setflag"><i class="layui-icon layui-extend-stop"></i>取消</a>
    {{#  } else { }}
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="setflag"><i class="layui-icon layui-icon-ok"></i>发布</a>
    {{#  } }}
    {{#  if(!d.ReplyContent){ }}
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="reply"><i class="layui-icon layui-icon-edit"></i>回复</a>
    {{#  } else { }}
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="delreplycontent"><i class="layui-icon layui-icon-delete"></i>删除回复</a>
    {{#  } }}
</script>
<script type="text/html" id="operation">
    {{# if( d.AuditStatus=="1" && parseInt(d.Status)<3){ }}
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="editExam"><i class="layui-icon layui-icon-edit"></i>资料审核</a>
    {{# } }}
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="detail"><i class="layui-icon layui-icon-search"></i>查看详情</a>
</script>